home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / snippets / cfsetting.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  1.2 KB  |  47 lines

  1. <!--- This example shows the use of CFSETTING --->
  2. <HTML>
  3. <HEAD>
  4. <TITLE>CFSETTING Example</TITLE>
  5. </HEAD>
  6.  
  7. <BASEFONT FACE="Arial, Helvetica" SIZE=2>
  8. <BODY  bgcolor="#FFFFD5">
  9.  
  10. <H3>CFSETTING Example</H3>
  11. <P>
  12. CFSETTING is used to control the output of HTML code in your
  13. Cold Fusion pages.  This tag can be used to minimize the amount
  14. of generated whitespace in your templates.
  15.  
  16. <!---
  17. This example requires an additional step because the entire frameset
  18. is wrapped in a CFOUTPUT tag (which causes all text to
  19. be displayed). --->
  20.  
  21. <CFIF IsDefined("url.run")>
  22.   <P>
  23.   Compare the page display with the view example pane
  24.   to see the text that has been supressed.
  25.   <CFSETTING ENABLECFOUTPUTONLY="Yes">
  26.     <P>This text is not shown
  27.   <CFSETTING ENABLECFOUTPUTONLY="No">
  28.     <P>This text is shown
  29.   <CFSETTING ENABLECFOUTPUTONLY="Yes">
  30.   <CFOUTPUT>
  31.     <P>Text within CFOUTPUT is always shown
  32.   </CFOUTPUT>    
  33.   <CFSETTING ENABLECFOUTPUTONLY="No">
  34.   <CFOUTPUT>
  35.     <P>Text within CFOUTPUT is always shown
  36.   </CFOUTPUT>    
  37. <CFELSE>
  38.   <P>Click the Display Output button to view the page.
  39.  
  40.   <FORM ACTION="./cfsetting.cfm?run=yes" METHOD="POST">
  41.     <input type="submit" VALUE="Display Output">
  42.   </form>
  43. </CFIF>
  44.  
  45. </BODY>
  46. </HTML>       
  47.